Skip to content

Commit

Permalink
Feature/setup py readme
Browse files Browse the repository at this point in the history
* Export requirements to files

* Fixing setuppy and readme
  • Loading branch information
royreznik authored Sep 30, 2022
1 parent 406f68f commit 4964f40
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python application
name: ci

on:
push:
Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@ format:
black plz/ tests/

test:
pytest -svv tests/
pytest -svv tests/

build:
rm -rf dist/
python setup.py sdist bdist_wheel
rm -rf build/

publish: build
pip install 'twine>=1.5.0'
twine upload dist/* --verbose
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# plz
# plz
![licesns](https://img.shields.io/github/license/royreznik/plz)
![python](https://img.shields.io/pypi/pyversions/plz)
![code style](https://camo.githubusercontent.com/d91ed7ac7abbd5a6102cbe988dd8e9ac21bde0a73d97be7603b891ad08ce3479/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d626c61636b2d3030303030302e737667)
![lastcommit](https://img.shields.io/github/last-commit/royreznik/plz)
[![Python assspplication](https://github.com/royreznik/plz/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/royreznik/plz/actions/workflows/ci.yml)
![downloads](https://img.shields.io/pypi/dm/plz)

Lightweight and simple python virtual environment and dependencies manager

## Install
```bash
pip install plz
```

## Developing
```bash
make install
make test
make format
make lint
```
3 changes: 2 additions & 1 deletion dev-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ isort
flake8
flake8-black
flake8-isort
mypy
mypy
wheel
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ virtualenv==20.16.5
# via -r requirements.txt
wheel==0.37.1
# via
# -r dev-requirements.in
# -r requirements.txt
# pip-tools

Expand Down
2 changes: 1 addition & 1 deletion plz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .__main__ import cli

__version__ = "0.0.0"
__version__ = "0.0.1"


__all__ = ["cli", "__version__"]
36 changes: 31 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,47 @@
from pathlib import Path

from setuptools import setup

DEPENDENCIES = Path("requirements.in").read_text().split()

__version__ = "0.0.1"

readme = Path("README.md").read_text("UTF-8")

setup(
name="plz",
version="0.0.0",
version=__version__,
author="Roy Reznik",
author_email="royreznik@gmail.com",
license="MIT License",
keywords="CLI wrapping over virtualenv and pip-tools",
packages=["plz"],
install_requires=DEPENDENCIES,
entry_points={
"console_scripts": [
"plz = plz:cli",
],
},
install_requires=DEPENDENCIES,
python_requires=">=3.8, <4",
url="https://github.com/royreznik/plz",
license="MIT License",
description="plz is lightweight and simple virtual environment and dependencies manager, wrapping virtualenv and piptools together",
long_description=readme,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Systems Administration",
"Typing :: Typed",
],
)

0 comments on commit 4964f40

Please sign in to comment.