summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVal Neekman <val@neekware.com>2017-04-11 09:53:54 -0400
committerVal Neekman <val@neekware.com>2017-04-11 09:53:54 -0400
commit3b8f80edf265aa2df4db307026bc3a791dcc904d (patch)
tree606c01a548046966560a0d9aea7b9204d5c1ef24
parent5ef6715018fc9022cb61f5c93ac6c6c471ecc089 (diff)
downloadpython-slugify-3b8f80edf265aa2df4db307026bc3a791dcc904d.tar.gz
Add setup.cfg, enhance setup.py
-rw-r--r--.gitignore2
-rw-r--r--setup.cfg2
-rwxr-xr-xsetup.py9
3 files changed, 10 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 8025fb9..6cc65d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,3 +58,5 @@ docs/_build/
# PyBuilder
target/
+
+*.*DS_Store
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..3c6e79c
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,2 @@
+[bdist_wheel]
+universal=1
diff --git a/setup.py b/setup.py
index cc93cc9..9f008a4 100755
--- a/setup.py
+++ b/setup.py
@@ -19,8 +19,9 @@ install_requires = ['Unidecode>=0.04.16']
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
+ 'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
- 'Operating System :: POSIX',
+ 'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
@@ -42,12 +43,13 @@ def get_version(package):
if sys.argv[-1] == 'publish':
- os.system("python setup.py sdist upload")
+ os.system("python setup.py sdist bdist bdist_wheel")
args = {'version': get_version(package)}
print("You probably want to also tag the version now:")
print(" git tag -a %(version)s -m 'version %(version)s' && git push --tags" % args)
sys.exit()
+EXCLUDE_FROM_PACKAGES = []
setup(
name=name,
@@ -55,9 +57,10 @@ setup(
url=url,
license=license,
description=description,
+ long_description=description,
author=author,
author_email=author_email,
- packages=find_packages(),
+ packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
install_requires=install_requires,
classifiers=classifiers,
entry_points={'console_scripts': ['slugify=slugify.slugify:main']},