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

Project setup related improvements #49

Merged
merged 1 commit into from
Jan 18, 2020
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
236 changes: 106 additions & 130 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,131 +1,107 @@
#add file which you want to ignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.db
# *.py[cod]
# *$py.class
#
# # C extensions
# *.so
#
# # Distribution / packaging
# .Python
# build/
# develop-eggs/
# dist/
# downloads/
# eggs/
# .eggs/
# lib/
# lib64/
# parts/
# sdist/
# var/
# wheels/
# pip-wheel-metadata/
# share/python-wheels/
# *.egg-info/
# .installed.cfg
# *.egg
# MANIFEST
#
# # PyInstaller
# # Usually these files are written by a python script from a template
# # before PyInstaller builds the exe, so as to inject date/other infos into it.
# *.manifest
# *.spec
#
# # Installer logs
# pip-log.txt
# pip-delete-this-directory.txt
#
# # Unit test / coverage reports
# htmlcov/
# .tox/
# .nox/
# .coverage
# .coverage.*
# .cache
# nosetests.xml
# coverage.xml
# *.cover
# *.py,cover
# .hypothesis/
# .pytest_cache/
#
# # Translations
# *.mo
# *.pot
#
# # Django stuff:
# *.log
# local_settings.py
# db.sqlite3
# db.sqlite3-journal
#
# # Flask stuff:
# instance/
# .webassets-cache
#
# # Scrapy stuff:
# .scrapy
#
# # Sphinx documentation
# docs/_build/
#
# # PyBuilder
# target/
#
# # Jupyter Notebook
# .ipynb_checkpoints
#
# # IPython
# profile_default/
# ipython_config.py
#
# # pyenv
# .python-version
#
# # pipenv
# # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# # However, in case of collaboration, if having platform-specific dependencies or dependencies
# # having no cross-platform support, pipenv may install dependencies that don't work, or not
# # install all needed dependencies.
# #Pipfile.lock
#
# # PEP 582; used by e.g. github.com/David-OConnor/pyflow
# __pypackages__/
#
# # Celery stuff
# celerybeat-schedule
# celerybeat.pid
#
# # SageMath parsed files
# *.sage.py
#
# # Environments
# .env
# .venv
# env/
# venv/
# ENV/
# env.bak/
# venv.bak/
#
# # Spyder project settings
# .spyderproject
# .spyproject
#
# # Rope project settings
# .ropeproject
#
# # mkdocs documentation
# /site
#
# # mypy
# .mypy_cache/
# .dmypy.json
# dmypy.json
#
# # Pyre type checker
# .pyre/
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# User db files
generated_password.db
5 changes: 1 addition & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
include genpass/*.py
include README.rst
include LICENSE
include requirements.txt
include README.rst LICENSE requirements.txt contributing.md
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
diceware>=0.9.6
click>=7.0
beautifultable>=0.5.0
setuptools>=40.0.0
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
from setuptools import setup, find_packages
from setuptools import find_packages
from setuptools import setup


with open("README.rst") as readme_file:
long_description = readme_file.read()

install_requires = ["setuptools", "click>=5.0", "diceware>=0.9.5", "beautifultable>=0.5.0"]
with open("requirements.txt") as req_file:
install_requires = req_file.read().split()


setup_requirements = ["setuptools_scm"]

setup(
name="pygenpass",
packages=find_packages(),
entry_points={"console_scripts": ["pygenpass = genpass.__init__:main"]},
version="0.1",
author="Mayuri Lahane",
Expand All @@ -20,9 +23,10 @@
license="MIT",
keywords="genpass pygenpass gempass passwordmanager manager encryption",
url="https://github.com/paint-it/genpass",
py_modules=["genpass.__init__"],
packages=find_packages(include=["genpass"]),
namespace_packages=[],
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
python_requires=">=3.5",
)