New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py changes for long description #87

Merged
merged 2 commits into from Jul 4, 2018
Jump to file or symbol
Failed to load files and symbols.
+22 −12
Diff settings

Always

Just for now

Copy path View file
@@ -4,7 +4,8 @@ Changelog of z3c.dependencychecker
2.5 (unreleased)
----------------
- Nothing changed yet.
- Another go at fixing the long description in pypi.
[reinout]
2.4.2 (2018-07-01)
Copy path View file
@@ -1,24 +1,33 @@
from setuptools import setup, find_packages
from setuptools import find_packages
from setuptools import setup
import codecs
import os.path
version = '2.5.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open(os.path.join('z3c', 'dependencychecker', 'USAGE.rst')).read(),
open('CHANGES.rst').read(),
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return f.read()
long_description = u'\n\n'.join([
read('README.rst'),
read(os.path.join('z3c', 'dependencychecker', 'USAGE.rst')),
read('CHANGES.rst'),
])
description = """
Checks which imports are done and compares them to what's
in setup.py and warns when discovering missing or unneeded
dependencies.
"""
setup(
name='z3c.dependencychecker',
version=version,
description=description,
description="Reports on missing or unneeded setup.py dependencies",
long_description=long_description,
long_description_content_type='text/x-rst; charset=UTF-8',
# Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
ProTip! Use n and p to navigate between commits in a pull request.