Skip to content

Commit

Permalink
chore: add release package files and Makefile
Browse files Browse the repository at this point in the history
a
  • Loading branch information
leandcesar committed Mar 3, 2023
1 parent 58ce9d6 commit cc2fbb1
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include README.rst LICENSE
include *.rst LICENSE
38 changes: 38 additions & 0 deletions Makefile
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
13 changes: 13 additions & 0 deletions requirements-dev.txt
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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gcsa>=2.0.1
9 changes: 9 additions & 0 deletions setup.cfg
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
62 changes: 62 additions & 0 deletions setup.py
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",
)

0 comments on commit cc2fbb1

Please sign in to comment.