-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from alichtman/pypi_setup_fixes
Pypi setup fixes
- Loading branch information
Showing
3 changed files
with
23 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
"""A setuptools based setup module for stronghold. | ||
See: | ||
""" | ||
A setuptools based setup module for stronghold. | ||
https://packaging.python.org/en/latest/distributing.html | ||
https://github.com/pypa/sampleproject | ||
""" | ||
|
@@ -10,59 +11,46 @@ | |
from codecs import open | ||
from os import path | ||
from constants import Constants | ||
import sys | ||
|
||
# Check if Python version is above 3 for manually running setup.py | ||
if sys.version_info[:3] < (3, 0, 0): | ||
sys.stdout.write("Requires Python 3 to run.") | ||
sys.exit(1) | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
|
||
# Get the long description from the README file | ||
with open(path.join(here, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
# Arguments marked as "Required" below must be included for upload to PyPI. | ||
# Fields marked as "Optional" may be commented out. | ||
|
||
setup( | ||
# $ pip install stronghold | ||
# https://pypi.org/project/stronghold/ | ||
name=Constants.PROJECT_NAME, # Required | ||
name=Constants.PROJECT_NAME, | ||
|
||
# Versions should comply with PEP 440: | ||
# https://www.python.org/dev/peps/pep-0440/ | ||
# Versions should comply with PEP 440: https://www.python.org/dev/peps/pep-0440/ | ||
# | ||
# For a discussion on single-sourcing the version across setup.py and the | ||
# project code, see https://packaging.python.org/en/latest/single_source_version.html | ||
version=Constants.VERSION, # Required | ||
version=Constants.VERSION, | ||
|
||
# This is a one-line description or tagline of what your project does. | ||
# Corresponds to the "Summary" metadata field: | ||
# https://packaging.python.org/specifications/core-metadata/#summary | ||
description=Constants.DESCRIPTION, # Required | ||
long_description_content_type="text/markdown", | ||
# Python version check for pip installs. | ||
python_requires=">=3", | ||
|
||
# Optional longer description of your project that represents | ||
# the body of text which users will see when they visit PyPI. | ||
# | ||
# Often, this is the same as your README, so you can just read it in from | ||
# that file directly (as we have already done above) | ||
# | ||
# This field corresponds to the "Description" metadata field: | ||
# https://packaging.python.org/specifications/core-metadata/#description-optional | ||
# One-line description of the project. | ||
description=Constants.DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
long_description=long_description, | ||
url=Constants.URL, | ||
author=Constants.AUTHOR_GITHUB, | ||
# author_email=Constants.AUTHOR_EMAIL, | ||
author_email="[email protected]", | ||
|
||
# Classifiers help users find your project by categorizing it. | ||
# | ||
# For a list of valid classifiers, see | ||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ # Optional | ||
'Development Status :: 5 - Production/Stable', | ||
|
||
'Intended Audience :: Developers', | ||
'Intended Audience :: End Users/Desktop', | ||
'Intended Audience :: System Administrators', | ||
|
||
'Topic :: Security', | ||
'Topic :: System :: Installation/Setup', | ||
'Topic :: System :: Logging', | ||
|
@@ -71,29 +59,21 @@ | |
'Topic :: System :: Networking :: Firewalls', | ||
'Topic :: System :: Operating System', | ||
'Topic :: Utilities', | ||
|
||
'Operating System :: MacOS', | ||
|
||
'Natural Language :: English', | ||
|
||
'License :: OSI Approved :: MIT License', | ||
|
||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
], | ||
|
||
# This field adds keywords for your project which will appear on the | ||
# project page. What does your project relate to? | ||
# | ||
# Note that this is a string of words separated by whitespace, not a list. | ||
keywords='fortify stronghold system configuration security firewall hardening logging secure', # Optional | ||
# This field adds keywords for your project | ||
# String of words separated by whitespace, not a list. | ||
keywords='fortify stronghold system configuration security firewall hardening secure', # Optional | ||
|
||
# Just want to distribute a single Python file, so using `py_modules` | ||
# argument as follows, which will expect a file called | ||
# `stronghold.py` to exist: | ||
# | ||
# argument, which will expect a file called `stronghold.py` to exist: | ||
py_modules=[ | ||
"stronghold", | ||
"constants" | ||
|
@@ -123,12 +103,6 @@ | |
stronghold=stronghold:cli | ||
''', | ||
|
||
# entry_points={ | ||
# 'console_scripts': [ | ||
# 'stronghold=stronghold:main', | ||
# ], | ||
# }, | ||
|
||
# List additional URLs that are relevant to your project as a dict. | ||
# | ||
# This field corresponds to the "Project-URL" metadata fields: | ||
|