Skip to content

Commit

Permalink
add: makefile for pypi publishing, correct ignoring files
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Nov 19, 2020
1 parent 34fb666 commit e29d349
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 23 deletions.
11 changes: 11 additions & 0 deletions .gitignore
@@ -0,0 +1,11 @@
**/.coverage
*.egg-info
**/__pycache__
**/.tox
**/.venv
**/.vscode
**/.pyc
**/.eggs

dist/
build/
21 changes: 0 additions & 21 deletions .hgignore

This file was deleted.

11 changes: 11 additions & 0 deletions Makefile
@@ -0,0 +1,11 @@
all: dist upload

dist:
python3 setup.py sdist bdist_wheel

upload:
twine check dist/*
twine upload dist/*

clean:
rm -rf build dist *.egg-info .eggs
10 changes: 8 additions & 2 deletions setup.py
Expand Up @@ -5,7 +5,6 @@

setup(
name="htmlgenerator",
version="0.1",
description="Declarative HTML templating system with lazy rendering",
long_description=long_description,
long_description_content_type="text/markdown",
Expand All @@ -14,7 +13,14 @@
author_email="sam@basx.dev",
license="New BSD License",
install_requires=[],
setup_requires=["setuptools_scm"],
setup_requires=["setuptools_autover"],
use_autover={
"root_version": "0.0",
"parse_tag": lambda tag: tag.lstrip("v"),
"create_version": lambda ver: "{}.post{}".format(
getattr(ver, "latest_version", "0"), ver.distance
),
},
packages=find_packages(),
zip_safe=False,
include_package_data=True,
Expand Down

0 comments on commit e29d349

Please sign in to comment.