diff --git a/data/centpkg.conf b/data/centpkg.conf new file mode 100644 index 0000000..853b63f --- /dev/null +++ b/data/centpkg.conf @@ -0,0 +1,13 @@ +[centpkg] +lookaside = https://git.stg.centos.org/sources +lookasidehash = sha1 +lookaside_cgi = https://git.stg.centos.org/sources/upload.cgi +lookaside_request_params = branch +distgit_namespaced = True +distgit_namespaces = rpms +gitbaseurl = https://%(user)s@git.stg.centos.org/%(repo)s.git +anongiturl = https://git.stg.centos.org/%(repo)s +branchre = .+\d$|.+\d-.+|master$ +kojiprofile = cbs +build_client = cbs +clone_config = \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 60d2158..2861ced 100644 --- a/poetry.lock +++ b/poetry.lock @@ -13,12 +13,13 @@ description = "Classes Without Boilerplate" name = "attrs" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -version = "20.1.0" +version = "20.2.0" [package.extras] dev = ["coverage (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "sphinx", "sphinx-rtd-theme", "pre-commit"] docs = ["sphinx", "sphinx-rtd-theme", "zope.interface"] tests = ["coverage (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"] +tests_no_zope = ["coverage (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six"] [[package]] category = "main" @@ -163,7 +164,7 @@ description = "Koji is a system for building and tracking RPMS. The base package name = "koji" optional = false python-versions = ">=2.6" -version = "1.22.0" +version = "1.22.1" [package.dependencies] pyOpenSSL = "*" @@ -351,7 +352,7 @@ description = "A python library and runtime script for managing RPMpackage sourc name = "rpkg" optional = false python-versions = "*" -version = "1.60" +version = "1.61" [package.dependencies] GitPython = "*" @@ -363,10 +364,9 @@ requests = "*" six = ">=1.9.0" [package.source] -reference = "150cf3830c0f65c10a98a5f678959b1757af9bfd" +reference = "07fb05a4cd49a56eb69d224acb15b6f1f7607644" type = "git" url = "https://pagure.io/rpkg.git" - [[package]] category = "main" description = "Placeholder pending proper publication of RPM Python bindings" @@ -443,8 +443,8 @@ atomicwrites = [ {file = "atomicwrites-1.4.0.tar.gz", hash = "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"}, ] attrs = [ - {file = "attrs-20.1.0-py2.py3-none-any.whl", hash = "sha256:2867b7b9f8326499ab5b0e2d12801fa5c98842d2cbd22b35112ae04bf85b4dff"}, - {file = "attrs-20.1.0.tar.gz", hash = "sha256:0ef97238856430dcf9228e07f316aefc17e8939fc8507e18c6501b761ef1a42a"}, + {file = "attrs-20.2.0-py2.py3-none-any.whl", hash = "sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc"}, + {file = "attrs-20.2.0.tar.gz", hash = "sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594"}, ] cccolutils = [ {file = "CCColUtils-1.5.tar.gz", hash = "sha256:6332a31b8ddb8916d364ab734941c786dcce7dc65fcc84870c5a25ab3ac18cbf"}, @@ -546,9 +546,9 @@ iniconfig = [ {file = "iniconfig-1.0.1.tar.gz", hash = "sha256:e5f92f89355a67de0595932a6c6c02ab4afddc6fcdc0bfc5becd0d60884d3f69"}, ] koji = [ - {file = "koji-1.22.0-py2-none-any.whl", hash = "sha256:767150fa94b87ed20f311b6c8d14adcf47a455e704a80fa947d846ee3c05d4f9"}, - {file = "koji-1.22.0-py3-none-any.whl", hash = "sha256:c1a2db19eb416d8127aa5b828ecc5a059f7831b51a4043eda1530ed7d3b8c9eb"}, - {file = "koji-1.22.0.tar.gz", hash = "sha256:fd40bfee1e930054a172f0bb2da262300423a636d1091b077a7b61177e16d129"}, + {file = "koji-1.22.1-py2-none-any.whl", hash = "sha256:a2ab6913b702d58780c2fa89690d433d6f4364ccd84135283a30a50cfb7b2ab5"}, + {file = "koji-1.22.1-py3-none-any.whl", hash = "sha256:151322367aa0f44433025eab03a5552431021c2aedce01bf72238eb6c52ba752"}, + {file = "koji-1.22.1.tar.gz", hash = "sha256:f2ba8a186aefedfd329953233db2f81d7fb15c75492491da34d8bb20b3723c9e"}, ] more-itertools = [ {file = "more-itertools-8.5.0.tar.gz", hash = "sha256:6f83822ae94818eae2612063a5101a7311e68ae8002005b5e05f03fd74a86a20"}, diff --git a/pyproject.toml b/pyproject.toml index 3c08a68..78b4f35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ license = "GPL-2.0-or-later" packages = [ { include = "centpkg", from = "src" }, ] +include = ["data/*"] [tool.poetry.dependencies] python = "^3.6" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..415181c --- /dev/null +++ b/setup.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +package_dir = \ +{'': 'src'} + +packages = \ +['centpkg', 'centpkg.api', 'centpkg.cli'] + +package_data = \ +{'data/': ['*']} + +install_requires = \ +['rpkg @ git+https://pagure.io/rpkg.git@master', 'rpm>=0.0.2,<0.0.3'] + +entry_points = \ +{'console_scripts': ['clirun = centpkg.cli:run']} + +setup_kwargs = { + 'name': 'centpkg', + 'version': '0.0.1', + 'description': 'centpkg is a centos cli implementation of rpkg', + 'long_description': None, + 'author': 'lrossett', + 'author_email': 'lrossett@redhat.com', + 'maintainer': None, + 'maintainer_email': None, + 'url': None, + 'package_dir': package_dir, + 'packages': packages, + 'package_data': package_data, + 'install_requires': install_requires, + 'entry_points': entry_points, + 'python_requires': '>=3.6,<4.0', +} + + +setup(**setup_kwargs) diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index e69de29..b8023d8 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -0,0 +1 @@ +__version__ = '0.0.1'