コード例 #1
0
        pipenv install
        pipenv run python make.py

    Usage:
        make.py build [options]
        make.py deploy [options]
        make.py test [options]
        make.py bump [options]
        make.py git [options]
        make.py -h | --help

    Options:
    -h, --help               Show this screen.
"""

proj = yaml.loadfile('Project')


class Cfg:
    version = proj['version']
    registry = 'pypi'


def build(cfg: Cfg):
    return wheel.cmd.build(clean_dir=True)


def deploy(cfg: Cfg):
    return wheel.cmd.push(clean_dir=True, repository=cfg.registry)

コード例 #2
0
ファイル: make.py プロジェクト: feluxe/timecount
Commands
  build     Build pyhton wheel.
  push      Push wheel to pypi.
  test      Run tests.
  bump      Run bump sequence.

Options:
  -h, --help    Show this screen.
"""
import prmt
import subprocess as sp
from docopt import docopt
from cmdi import print_summary
from buildlib import wheel, project, yaml

proj = yaml.loadfile("Project")


class Cfg:
    version = proj["version"]
    registry = "pypi"


def build_wheel(cfg: Cfg):
    return wheel.cmd.build(cleanup=True)


def push(cfg: Cfg):
    w = wheel.find_wheel("./dist", semver_num=cfg.version)
    return wheel.cmd.push(f"./dist/{w}")
コード例 #3
0
from setuptools import setup, find_packages
from buildlib import yaml
from codecs import open

with open('README.md') as f:
    long_description = f.read()

config = yaml.loadfile('Project')

setup(name=config['public_name'],
      version=config['version'],
      author=config['author'],
      author_email=config['author_email'],
      maintainer=config['maintainer'],
      maintainer_email=config['maintainer_email'],
      url=config['url'],
      description=config['description'],
      long_description=long_description,
      long_description_content_type='text/markdown',
      download_url=config['url'] + '/tarball/' + config['version'],
      license=config['license'],
      keywords=config['keywords'],
      include_package_data=True,
      platforms=config['pypi']['platforms'],
      classifiers=config['pypi']['classifiers'],
      install_requires=config['pypi']['install_requires'],
      packages=find_packages(where='.',
                             exclude=('tests', 'tests.*', 'venv-prmt',
                                      'venv-prmt.*')),
      package_dir=config['pypi']['package_dir'],
      package_data=config['pypi']['package_data'],
コード例 #4
0
ファイル: setup.py プロジェクト: Vortetty/sty
from setuptools import setup, find_packages
from codecs import open
from buildlib import yaml

with open('README.rst') as f:
    long_description = f.read()

config = None

with open('Project', 'r') as f:
    config = yaml.loadfile(f.read())

setup(name=config['public_name'],
      version=config['version'],
      author=config['author'],
      author_email=config['author_email'],
      maintainer=config['maintainer'],
      maintainer_email=config['maintainer_email'],
      url=config['url'],
      description=config['description'],
      long_description=long_description,
      long_description_content_type='text/x-rst',
      download_url=config['url'] + '/tarball/' + config['version'],
      license=config['license'],
      keywords=config['keywords'],
      include_package_data=True,
      platforms='',
      classifiers=[],
      install_requires=[],
      packages=find_packages(where='.', exclude=('tests', 'tests.*')),
      package_dir={"sty": "sty"},