Skip to content

Improvements to PyPI packaging #2

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@ dist
# IDE Files
atlassian-ide-plugin.xml
.idea/
.vscode/
*.swp
*.kate-swp
.ropeproject/
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -4,3 +4,6 @@ universal = 1
[flake8]
ignore = F401,F403,E502,E123,E127,E128,E303,E713,E111,E241,E302,E121,E261,W391
max-line-length = 120

[metadata]
license_file = LICENSE
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -75,16 +75,17 @@ def run_tests(self):

cmdclass['test'] = PyTest

try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, OSError, RuntimeError):
readme = ''

with open('README.md', encoding='utf-8') as f: # Loads in the README for PyPI
long_description = f.read()


setup(name='hug_authentication_ldap',
version='1.0.3',
description='LDAP based authentication support for hug',
long_description=readme,
long_description=long_description,
# PEP 566, the new PyPI, and setuptools>=38.6.0 make markdown possible
long_description_content_type='text/markdown',
author='Timothy Crosley',
author_email='timothy.crosley@gmail.com',
url='https://github.com/timothycrosley/hug_authentication_ldap',