1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Initial commit

This commit is contained in:
Steffo 2019-11-11 10:16:39 +01:00
commit 15a3cb84eb
10 changed files with 106 additions and 0 deletions

9
.gitignore vendored Normal file
View file

@ -0,0 +1,9 @@
config.ini
.idea/
.vscode/
__pycache__
*.egg-info/
.pytest_cache/
dist/
build/
venv/

5
README.md Normal file
View file

@ -0,0 +1,5 @@
# `{packname}` [![PyPI](https://img.shields.io/pypi/v/{packname}.svg)](https://pypi.org/project/{packname}/)
{Replace everything surrounded by braces with your own data, including this description!}
{Files to be changed are the package folder, setup.py, to_pypi.sh and this README!}

0
requirements.txt Normal file
View file

24
setup.py Normal file
View file

@ -0,0 +1,24 @@
import setuptools
with open("README.md", "r") as f:
long_description = f.read()
with open("requirements.txt", "r") as f:
install_requires = f.readlines()
setuptools.setup(
name="{packname}",
version="0.1",
author="{packauthorname}",
author_email="{packauthoremail}",
description="{packdescription}",
long_description=long_description,
long_description_content_type="text/markdown",
url="{packgithublink}",
packages=setuptools.find_packages(),
install_requires=install_requires,
python_requires=">=3.7",
classifiers=[
"Programming Language :: Python :: 3.7",
],
)

3
to_pypi.bat Normal file
View file

@ -0,0 +1,3 @@
del /f /q /s dist\*.*
python setup.py sdist bdist_wheel
twine upload dist/*

12
to_pypi.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
# Royalnet must be installed with `develop`
VERSION=$(python3.7 -m royalpack.version)
rm -rf dist
python setup.py sdist bdist_wheel
twine upload "dist/{packname}-$VERSION"*
git add *
git commit -m "$VERSION"
git push
hub release create --message "Version $VERSION" --prerelease "$VERSION"

17
{packname}/__init__.py Normal file
View file

@ -0,0 +1,17 @@
# This is a template Pack __init__. You can use this without changing anything in other packages too!
from . import commands, tables, stars
from .commands import available_commands
from .tables import available_tables
from .stars import available_page_stars, available_exception_stars
__all__ = [
"commands",
"tables",
"stars",
"available_commands",
"available_tables",
"available_page_stars",
"available_exception_stars",
]

View file

@ -0,0 +1,10 @@
# Imports go here!
# Enter the commands of your Pack here!
available_commands = [
]
# Don't change this, it should automatically generate __all__
__all__ = [command.__name__ for command in available_commands]

View file

@ -0,0 +1,16 @@
# Imports go here!
# Enter the PageStars of your Pack here!
available_page_stars = [
]
# Enter the ExceptionStars of your Pack here!
available_exception_stars = [
]
# Don't change this, it should automatically generate __all__
__all__ = [command.__name__ for command in [*available_page_stars, *available_exception_stars]]

View file

@ -0,0 +1,10 @@
# Imports go here!
# Enter the tables of your Pack here!
available_tables = [
]
# Don't change this, it should automatically generate __all__
__all__ = [table.__name__ for table in available_tables]