grow food, not lawn.

Commit 143127cf authored by Russell Ballestrini's avatar Russell Ballestrini 💃
Browse files

move tests

	renamed:    .hgignore -> .gitignore
	new file:   .gitlab-ci.yml
	new file:   Makefile
	new file:   miniuri/tests/__init__.py
	renamed:    test_miniuri.py -> miniuri/tests/test_miniuri.py
	new file:   requirements-test.txt
	modified:   setup.py
parent 9b4016da
Pipeline #261 passed with stage
# use glob syntax.
syntax: glob
*.pyc
*.swp
*.orig
......@@ -9,3 +6,5 @@ syntax: glob
build/*
.cache/*
.pytest_cache/*
env/*
dist/*
stages:
- test
#- build
#- deploy
test:
stage: test
tags: ["build"]
script: make test
artifacts:
paths:
- env.vanilla
expire_in: 1 hour
env:
python3 -m venv env
. env/bin/activate
env/bin/pip install --upgrade pip
test: env
#env/bin/py.test --lf
env/bin/pip install --upgrade -r requirements-test.txt
env/bin/py.test
from unittest import TestCase
from miniuri import Uri
from ..miniuri import Uri
class TestMiniUri(TestCase):
......
# testing.
pytest
pytest-cov
nose
twine
......@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup(
name="miniuri",
version="1.0.8",
version="1.0.9",
long_description=open("README.rst").read(),
description="miniuri: The Universal URI Parser",
keywords="miniuri uri url parser",
......@@ -13,7 +13,7 @@ setup(
url="https://git.unturf.com/python/miniuri",
platforms=["All"],
license="Public Domain",
packages=find_packages(),
packages=find_packages(exclude="tests"),
include_package_data=True,
classifiers=[
# Specify the Python versions you support here. In particular, ensure
......@@ -37,4 +37,6 @@ setup(
# setup keyword args: http://peak.telecommunity.com/DevCenter/setuptools
# built and uploaded to pypi with this:
# python setup.py sdist bdist_egg register upload
#python setup.py sdist bdist_egg
#twine upload dist/*
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment