Skip to content

Commit

Permalink
Merge pull request #49 from alichtman/pypi_setup_fixes
Browse files Browse the repository at this point in the history
Pypi setup fixes
  • Loading branch information
alichtman authored May 30, 2018
2 parents c7f88cd + 821977c commit a0f3cd4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 54 deletions.
2 changes: 1 addition & 1 deletion constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Constants:
PROJECT_NAME = 'stronghold'
VERSION = '1.3'
VERSION = '1.4'
AUTHOR_GITHUB = 'alichtman'
AUTHOR_FULL_NAME = 'Aaron Lichtman'
DESCRIPTION = "Securely configure your Mac from the terminal."
Expand Down
7 changes: 1 addition & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
description-file = README.md

[bdist_wheel]
# This flag says to generate wheels that support both Python 2 and Python
# 3. If your code will not run unchanged on both Python 2 and 3, you will
# need to generate separate wheels for each Python version that you
# support.
# TODO: Add support for Python 2?
universal=1
python-tag = py3
68 changes: 21 additions & 47 deletions setup.py
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
"""
Expand All @@ -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',
Expand All @@ -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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a0f3cd4

Please sign in to comment.