Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup poetry - awaiting scripts support #41

Open
wants to merge 1 commit into
base: 0.2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
251 changes: 251 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[tool.poetry]
name = "construct"
version = "0.2.0"
description = "Manage projects and libraries."
license = "MIT"
readme = "README.rst"
homepage = "https://github.com/construct-org/construct"
repository = "https://github.com/construct-org/construct"
authors = [
"Dan Bradham <danielbradham@gmail.com>"
]
classifiers = [
"Programming Language :: Python",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX"
]

[tool.poetry.scripts]
pyconstruct = "construct.cli.__main__:main"
construct_sh = { path = "bin/construct" }
construct_bat = { path = "bin/construct.bat" }
construct_ps1 = { path = "bin/construct.ps1" }

[tool.poetry.dependencies]
python = "~2.7 || ^3.5"
bson = "^0.5.8"
cachetools = "^3.1"
cerberus = "^1.3"
fsfs = "^0.2.6"
future = "^0.17.1"
qtsass = "^0.1.1"
pymongo = "^3.9"
pyyaml = "^5.1"
pathlib2 = { version = "^2.3", python = "~2.7 || ~3.4" }
PySide2 = { version = "^5.13", python = "^3.5" }

[tool.poetry.dev-dependencies]
invoke = "^1.3"
nose = "^1.3"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
12 changes: 0 additions & 12 deletions requirements-dev.txt

This file was deleted.

8 changes: 0 additions & 8 deletions requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

68 changes: 0 additions & 68 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,68 +0,0 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys
import re


def get_meta(pyfile, readme):
meta = {}

# Get dunder values from python file
pattern = re.compile(r"^__(\w+)__ = ['\"](.*)['\"]")
with open(pyfile, 'r') as f:
for line in f.readlines():
match = pattern.search(line)
if match:
meta[match.group(1)] = match.group(2)

# Get contents of readme
with open(readme, 'r') as f:
meta['readme'] = f.read()

return meta


meta = get_meta('./construct/__init__.py', 'README.rst')


setup(
name=meta['title'],
version=meta['version'],
author=meta['author'],
author_email=meta['email'],
description=meta['description'],
url=meta['url'],
long_description=meta['readme'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
],
packages=find_packages(exclude=['tests']),
include_package_data=True,
install_requires=[
'pathlib2;python_version<"3.5"',
'fsfs',
'pyyaml',
'future',
'bson',
'cachetools',
'cerberus'
],
entry_points={
'console_scripts': [
'pyconstruct = construct.cli.__main__:main'
]
},
scripts=[
'bin/construct.bat',
'bin/construct.ps1',
'bin/construct.sh',
],
)