First code, as generated by Rattail

This commit is contained in:
Lance Edgar 2023-05-05 13:33:41 -05:00
commit 4004342497
8 changed files with 117 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
rattail_nationbuilder.egg-info/

10
CHANGELOG.md Normal file
View file

@ -0,0 +1,10 @@
# Changelog
All notable changes to rattail-nationbuilder will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [0.1.0] - ??
### Added
- Initial version.

2
MANIFEST.in Normal file
View file

@ -0,0 +1,2 @@
include *.md
include *.rst

11
README.md Normal file
View file

@ -0,0 +1,11 @@
# rattail-nationbuilder
Rattail is a retail software framework, released under the GNU General
Public License.
This package contains software interfaces for
[NationBuilder](https://nationbuilder.com/).
Please see the [Rattail Project](https://rattailproject.org/)
for more information.

View file

@ -0,0 +1,6 @@
# -*- coding: utf-8; -*-
"""
rattail-nationbuilder package root
"""
from ._version import __version__

View file

@ -0,0 +1,3 @@
# -*- coding: utf-8; -*-
__version__ = '0.1.0'

51
setup.py Normal file
View file

@ -0,0 +1,51 @@
# -*- coding: utf-8; -*-
"""
rattail-nationbuilder setup script
"""
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
exec(open(os.path.join(here, 'rattail_nationbuilder', '_version.py')).read())
README = open(os.path.join(here, 'README.md')).read()
setup(
name = "rattail-nationbuilder",
version = __version__,
author = "Your Name",
author_email = "you@example.com",
# url = "https://example.com/",
description = "Rattail integration package for NationBuilder",
long_description = README,
classifiers = [
# TODO: remove this if you intend to publish your project
# (it's here by default, to prevent accidental publishing)
'Private :: Do Not Upload',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Office/Business',
],
install_requires = [
'rattail',
# TODO: these may be needed to build/release package
#'build',
#'invoke',
#'twine',
],
packages = find_packages(),
include_package_data = True,
entry_points = {
},
)

33
tasks.py Normal file
View file

@ -0,0 +1,33 @@
# -*- coding: utf-8; -*-
"""
Tasks for rattail-nationbuilder
"""
import os
import shutil
from invoke import task
here = os.path.abspath(os.path.dirname(__file__))
exec(open(os.path.join(here, 'rattail_nationbuilder', '_version.py')).read())
@task
def release(c):
"""
Release a new version of rattail-nationbuilder
"""
# rebuild local tar.gz file for distribution
if os.path.exists('rattail_nationbuilder.egg-info'):
shutil.rmtree('rattail_nationbuilder.egg-info')
c.run('python -m build --sdist')
# filename of built package
filename = 'rattail-nationbuilder-{}.tar.gz'.format(__version__)
# TODO: uncomment and update these details, to upload to private PyPI
#c.run('scp dist/{} rattail@pypi.example.com:/srv/pypi/rattail-nationbuilder/'.format(filename))
# TODO: or, uncomment this to upload to *public* PyPI
#c.run('twine upload dist/{}'.format(filename))