Skip to content

Commit

Permalink
Merge cd0d1cd into 33b7e81
Browse files Browse the repository at this point in the history
  • Loading branch information
meejah committed Feb 16, 2023
2 parents 33b7e81 + cd0d1cd commit 72a9517
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 62 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/python2.yaml

This file was deleted.

6 changes: 2 additions & 4 deletions INSTALL
Expand Up @@ -24,13 +24,11 @@ If you want to take slightly more time, but only install temporarily,
use virtualenv:

apt-get install python-setuptools python-pip
python setup.py build
mkdir tmp
virtualenv --never-download --extra-search-dir=/usr/lib/python2.7/dist-packages/ tmp/txtorcon_env
virtualenv tmp/txtorcon_env
cd tmp/txtorcon_env
source bin/activate
pip install Twisted ipaddress pygeoip # this will download from internets:
export PYTHONPATH=../../build/lib.linux-x86_64-2.7/
pip install --editable . # this will download from internets:

(Or you can type "make virtualenv" which creates tmp/txtorcon_env, up
to the "activate" step above)
Expand Down
24 changes: 11 additions & 13 deletions Makefile
@@ -1,6 +1,6 @@
.PHONY: test html counts coverage sdist clean install doc integration diagrams
default: test
VERSION = 22.0.0
VERSION = 23.0.0

test:
PYTHONPATH=. trial --reporter=text test
Expand Down Expand Up @@ -99,37 +99,35 @@ counts:
test-release: dist
./scripts/test-release.sh $(shell pwd) ${VERSION}

dist: dist/txtorcon-${VERSION}-py2.py3-none-any.whl dist/txtorcon-${VERSION}.tar.gz
dist: dist/txtorcon-${VERSION}-py3-none-any.whl dist/txtorcon-${VERSION}.tar.gz

dist-sigs: dist/txtorcon-${VERSION}-py2.py3-none-any.whl.asc dist/txtorcon-${VERSION}.tar.gz.asc
dist-sigs: dist/txtorcon-${VERSION}-py3-none-any.whl.asc dist/txtorcon-${VERSION}.tar.gz.asc

sdist: setup.py
python setup.py check
python setup.py sdist

dist/txtorcon-${VERSION}-py2.py3-none-any.whl:
dist/txtorcon-${VERSION}-py3-none-any.whl:
python setup.py check
python setup.py bdist_wheel --universal
python setup.py bdist_wheel

dist/txtorcon-${VERSION}-py2.py3-none-any.whl.asc: dist/txtorcon-${VERSION}-py2.py3-none-any.whl
gpg --verify dist/txtorcon-${VERSION}-py2.py3-none-any.whl.asc || gpg --pinentry loopback --no-version --detach-sign --armor --local-user meejah@meejah.ca dist/txtorcon-${VERSION}-py2.py3-none-any.whl
dist/txtorcon-${VERSION}-py3-none-any.whl.asc: dist/txtorcon-${VERSION}-py3-none-any.whl
gpg --verify dist/txtorcon-${VERSION}-py3-none-any.whl.asc || gpg --pinentry loopback --no-version --detach-sign --armor --local-user meejah@meejah.ca dist/txtorcon-${VERSION}-py3-none-any.whl

dist/txtorcon-${VERSION}.tar.gz: sdist
dist/txtorcon-${VERSION}.tar.gz.asc: dist/txtorcon-${VERSION}.tar.gz
gpg --verify dist/txtorcon-${VERSION}.tar.gz.asc || gpg --pinentry loopback --no-version --detach-sign --armor --local-user meejah@meejah.ca dist/txtorcon-${VERSION}.tar.gz

release:
twine upload -r pypi -c "txtorcon v${VERSION} tarball" dist/txtorcon-${VERSION}.tar.gz dist/txtorcon-${VERSION}.tar.gz.asc
twine upload -r pypi -c "txtorcon v${VERSION} wheel" dist/txtorcon-${VERSION}-py2.py3-none-any.whl dist/txtorcon-${VERSION}-py2.py3-none-any.whl.asc
twine upload -r pypi -c "txtorcon v${VERSION} wheel" dist/txtorcon-${VERSION}-py3-none-any.whl dist/txtorcon-${VERSION}-py3-none-any.whl.asc


venv:
virtualenv --never-download --extra-search-dir=/usr/lib/python2.7/dist-packages/ venv
virtualenv venv
./venv/bin/pip install -r requirements.txt
./venv/bin/pip install -r dev-requirements.txt
@echo "created venv"
@echo "see INSTALL for more information; to use:"
@echo ". ./venv/bin/activate"
@echo "pip install -r requirements.txt"
@echo "pip install -r dev-requirements.txt"
@echo "python examples/monitor.py"

html: docs/*.rst
Expand Down
6 changes: 2 additions & 4 deletions README.rst
Expand Up @@ -39,11 +39,10 @@ txtorcon
- **code**: https://github.com/meejah/txtorcon
- ``torsocks git clone git://fjblvrw2jrxnhtg67qpbzi45r7ofojaoo3orzykesly2j3c2m3htapid.onion/txtorcon.git``
- MIT-licensed;
- Python 2.7, PyPy 5.0.0+, Python 3.5+;
- Python 3.5+, PyPy 5.0.0+;
- depends on
`Twisted`_,
`Automat <https://github.com/glyph/automat>`_,
(and the `ipaddress <https://pypi.python.org/pypi/ipaddress>`_ backport for non Python 3)
`Automat <https://github.com/glyph/automat>`_


Ten Thousand Feet
Expand All @@ -67,7 +66,6 @@ Some Possibly Motivational Example Code
---------------------------------------

`download <examples/readme.py>`_
(also `python2 style <examples/readme2.py>`_)

.. code:: python
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Expand Up @@ -58,9 +58,6 @@
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: Proxy Servers',
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Expand Up @@ -11,10 +11,10 @@
# stretch: 16.3.0-1

[tox]
envlist = clean,flake8,stats,readme_render,{py27,py36,py37,py38,py39,pypy}-{tx18,tx19,tx20},{py36,py37,py38,py39}-tx21
envlist = clean,flake8,stats,readme_render,{py36,py37,py38,py39,pypy}-{tx18,tx19,tx20},{py36,py37,py38,py39}-tx21
# if you're not using detox, you can use this list to get
# "all environments" coverage stats:
# tox -e 'clean,flake8,py27-tx18,pypy-tx18,py35-tx18,stats'
# tox -e 'clean,flake8,py39-tx20,pypy-tx20,py35-tx20,stats'

# defaults
[testenv]
Expand Down
4 changes: 2 additions & 2 deletions txtorcon/_metadata.py
@@ -1,6 +1,6 @@
__version__ = '22.0.0'
__version__ = '23.0.0'
__author__ = 'meejah'
__contact__ = 'meejah@meejah.ca'
__url__ = 'https://github.com/meejah/txtorcon'
__license__ = 'MIT'
__copyright__ = 'Copyright 2012-2022'
__copyright__ = 'Copyright 2012-2023'

0 comments on commit 72a9517

Please sign in to comment.