-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add release package files and
Makefile
a
- Loading branch information
1 parent
58ce9d6
commit cc2fbb1
Showing
6 changed files
with
124 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include README.rst LICENSE | ||
include *.rst LICENSE |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.PHONY: clear help release | ||
.DEFAULT_GOAL := help | ||
|
||
define PRINT_HELP_PYSCRIPT | ||
import re, sys | ||
|
||
for line in sys.stdin: | ||
match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line) | ||
if match: | ||
target, help = match.groups() | ||
print("%-20s %s" % (target, help)) | ||
endef | ||
export PRINT_HELP_PYSCRIPT | ||
|
||
|
||
help: | ||
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) | ||
|
||
clear: ## remove all build, test, coverage and Python artifacts | ||
rm -fr build/ | ||
rm -fr dist/ | ||
rm -fr .eggs/ | ||
find . -name '*.egg-info' -exec rm -fr {} + | ||
find . -name '*.egg' -exec rm -f {} + | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
find . -name '__pycache__' -exec rm -fr {} + | ||
rm -fr .tox/ | ||
rm -f .coverage | ||
rm -fr htmlcov/ | ||
rm -fr .pytest_cache | ||
|
||
release: clear ## package and upload a release | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
ls -l dist | ||
twine upload dist/* --verbose |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
black==21.7b0 | ||
bump2version==0.5.11 | ||
coverage==4.5.4 | ||
flake8==3.7.8 | ||
interrogate==1.5.0 | ||
pip==21.1 | ||
pytest==6.2.4 | ||
pytest-cov>=2.1.0 | ||
sphinx==1.8.5 | ||
tox==3.14.0 | ||
twine==1.14.0 | ||
watchdog==0.9.0 | ||
wheel==0.33.6 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
gcsa>=2.0.1 |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[flake8] | ||
exclude = venv,.tox,build | ||
max-line-length = 100 | ||
|
||
[tool:pytest] | ||
addopts = --cov=marshmallow_br | ||
|
||
[coverage:run] | ||
branch = True |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup, find_packages | ||
|
||
with open("README.rst") as readme_file: | ||
readme = readme_file.read() | ||
|
||
requirements = [ | ||
"gcsa>=2.0.1", | ||
] | ||
|
||
test_requirements = [ | ||
"pytest>=3", | ||
] | ||
|
||
setup( | ||
name="gcsa-slots", | ||
description="Simple API for Google Calendar management with slots extension (dates and times available for scheduling)", | ||
long_description=readme, | ||
author="Leandro César Cassimiro", | ||
author_email="ccleandroc@gmail.com", | ||
url="https://github.com/leandcesar/google-calendar-simple-api-slots", | ||
version="0.1.0", | ||
license="MIT", | ||
python_requires=">=3.7", | ||
packages=find_packages(include=["gcsa_slots", "gcsa_slots.*"]), | ||
include_package_data=True, | ||
classifiers=[ | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
], | ||
keywords=[ | ||
"python", | ||
"conference", | ||
"calendar", | ||
"hangouts", | ||
"python-library", | ||
"event", | ||
"conferences", | ||
"google-calendar", | ||
"pip", | ||
"recurrence", | ||
"google-calendar-api", | ||
"attendee", | ||
"gcsa", | ||
"gcsa-slots", | ||
"slots", | ||
"scheduling", | ||
], | ||
zip_safe=False, | ||
install_requires=requirements, | ||
tests_require=test_requirements, | ||
test_suite="tests", | ||
) |