Skip to content

Commit

Permalink
Setup for Pypi publishing
Browse files Browse the repository at this point in the history
Also starting the first official version at 0.1.0 to try and follow semantic versioning
  • Loading branch information
daniel-tran committed Jan 15, 2021
1 parent 57451f9 commit 3069c7a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
__pycache__/
test/tmp/
docs/build/

# Ignore generated files and folders from setup.py
*.pyc
*.egg-info/
build/
dist/
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## 0.0.1
## 0.1.0

- Initial release!
- Added Web Extractor, YAML Extractor and YAML Downloader
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.1.0
41 changes: 41 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import setuptools

with open('VERSION.txt', 'r') as fh:
version = fh.read()

with open('README.md', 'r', encoding='utf-8') as fh:
readme = fh.read()

with open('CHANGELOG.md', 'r') as fh:
changelog = fh.read()

# Read requirements file to determine the dependencies without duplicating the text
with open('REQUIREMENTS.txt', 'r') as fh:
# Ignore comments, which start with '#'
install_requires = [requirement.strip() for requirement in fh.readlines() if not requirement.startswith('#')]

setuptools.setup(
name='meaningless',
version=version,
author='Daniel Tran',
author_email='dantran.au@gmail.com',
description='Retrieves, processes and downloads Bible passages from Bible Gateway',
license='MIT License',
long_description='\n'.join([readme, changelog]),
long_description_content_type='text/markdown',
url='https://github.com/daniel-tran/meaningless',
packages=setuptools.find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Religion',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3.5',
'Topic :: Religion',
],
keywords='bible yaml biblegateway',
python_requires='>=3.5',
install_requires=install_requires,
)

0 comments on commit 3069c7a

Please sign in to comment.