aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Brattlof <hello@bryanbrattlof.com>2020-06-30 10:38:33 -0400
committerBryan Brattlof <hello@bryanbrattlof.com>2020-06-30 12:44:30 -0400
commit6a327ec749bc4af809f91a2c34658fb0582497ac (patch)
tree46ef5fe2b64b43c9a73136d5c8509a00354e5f3f
parent6d6c8bf6b94fc897ad8ef6917af821b7b9a05323 (diff)
downloadpelican-htmlmin-6a327ec749bc4af809f91a2c34658fb0582497ac.tar.gz
pelican-htmlmin-6a327ec749bc4af809f91a2c34658fb0582497ac.tar.bz2
update setup.py
use b64decode to "hide" my email from the laziest of the bots read the package requirements from the 'requirements.txt' file instead of hard coded list.
-rw-r--r--setup.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/setup.py b/setup.py
index ea38fb0..8602829 100644
--- a/setup.py
+++ b/setup.py
@@ -1,16 +1,13 @@
+from base64 import b64decode
from setuptools import setup
from io import open
import os
pwd = os.path.abspath(os.path.dirname(__file__))
-VERSION = os.environ.get('CI_COMMIT_TAG', '0.0.0')
-
-REQUIRES = [
- 'htmlmin',
-]
-
-description = open(os.path.join(pwd, 'readme.rst'), encoding='utf-8').read()
+VERSION = '1.0.2'
+REQUIRES = open(os.path.join(pwd, 'requirements.txt')).read().splitlines()
+DESCRIPTION = open(os.path.join(pwd, 'readme.rst'), encoding='utf-8').read()
setup(
name='pelican-htmlmin',
@@ -20,10 +17,10 @@ setup(
url='https://git.bryanbrattlof.com/pelican-htmlmin',
description="Minifies HTML files generated by Pelican",
- long_description=description,
+ long_description=DESCRIPTION,
author='Bryan Brattlof',
- author_email='hello@bryanbrattlof.com',
+ author_email=b64decode(b'aGVsbG9AYnJ5YW5icmF0dGxvZi5jb20=').decode('ascii'),
license='MIT',
@@ -49,6 +46,8 @@ setup(
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
'Natural Language :: English',
],