Skip to content
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

Refactoring and Reorganization #139

Merged
merged 9 commits into from
Oct 25, 2018
Merged
Show file tree
Hide file tree
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
43 changes: 11 additions & 32 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
from setuptools import setup
from codecs import open
from os import path
from constants import Constants
from codecs import open
from setuptools import setup
from shallow_backup.constants import ProjInfo

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(
name=Constants.PROJECT_NAME, # Required
version=Constants.VERSION, # Required
description=Constants.DESCRIPTION, # Required
name=ProjInfo.PROJECT_NAME,
version=ProjInfo.VERSION,
description=ProjInfo.DESCRIPTION,
long_description_content_type="text/markdown",
long_description=long_description,
url=Constants.URL,
author=Constants.AUTHOR_GITHUB,
# author_email=Constants.AUTHOR_EMAIL,
url=ProjInfo.URL,
author=ProjInfo.AUTHOR_GITHUB,
author_email="aaronlichtman@gmail.com",

# 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 :: 4 - Beta',
Expand Down Expand Up @@ -59,22 +53,7 @@
#
# Note that this is a string of words separated by whitespace, not a list.
keywords='backup documentation system dotfiles install list configuration', # 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:
#
py_modules=[
"shallow_backup",
"constants"
],

# This field lists other packages that your project depends on to run.
# Any package you put here will be installed by pip when your project is
# installed, so they must be valid existing projects.
#
# For an analysis of "install_requires" vs pip's requirements files see:
# https://packaging.python.org/en/latest/requirements.html
packages=["shallow_backup"],
install_requires=[
'inquirer>=2.2.0',
'colorama>=0.3.9',
Expand All @@ -89,7 +68,7 @@
# For example, the following would provide a command called `sample` which
# executes the function `main` from this package when invoked:
entry_points={
'console_scripts':'shallow-backup=shallow_backup:cli'
'console_scripts': 'shallow-backup=shallow_backup.shallow_backup:cli'
},

# List additional URLs that are relevant to your project as a dict.
Expand All @@ -102,7 +81,7 @@
# maintainers, and where to support the project financially. The key is
# what's used to render the link text on PyPI.
project_urls={
'Bug Reports': 'https://github.com/alichtman/shallow-backup/issues',
'Bug Reports': ProjInfo.BUG_REPORT_URL,
'Donations': 'https://www.patreon.com/alichtman',
},
)
Loading