Skip to content
Snippets Groups Projects
Commit dd7e01713cd8 authored by Charlie Clark's avatar Charlie Clark
Browse files

Create package

parent 00f47b191939
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
except: except:
from urllib.request import pathname2url from urllib.request import pathname2url
from lxml import etree
def make_version_tuple(version_string): def make_version_tuple(version_string):
l = [] l = []
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
import unittest import unittest
import tempfile, os, sys import tempfile, os, sys
from .common_imports import etree, HelperTestCase, skipIf from .common_imports import HelperTestCase, skipIf
from . import xmlfile as etree from . import xmlfile as etree
import pytest import pytest
......
[pytest]
addopts = -l --strict
norecursedirs = lib include .tox
\ No newline at end of file
setup.py 0 → 100755
#!/usr/bin/env python
"""Setup script for packaging et_xmfile.
Requires setuptools.
To build the setuptools egg use
python setup.py bdist_egg
and either upload it to the PyPI with:
python setup.py upload
or upload to your own server and register the release with PyPI:
python setup.py register
A source distribution (.zip) can be built with
python setup.py sdist --format=zip
That uses the manifest.in file for data files rather than searching for
them here.
"""
import sys
import os
import warnings
if sys.version_info < (2, 6):
raise Exception("Python >= 2.6 is required.")
elif sys.version_info[:2] == (3, 2):
warnings.warn("Python 3.2 is no longer officially supported")
from setuptools import setup, Extension, find_packages
import re
here = os.path.abspath(os.path.dirname(__file__))
try:
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
except IOError:
README = ''
__author__ = 'See AUTHORS'
__license__ = 'MIT'
__author_email__ = 'charlie.clark@clark-consulting.eu'
__url__ = 'https://bitbucket.org/openpyxl/et_xmlfile'
setup(name='et_xmlfile',
packages=find_packages(),
# metadata
version="1.0.0",
description="An implementation of lxml.xmlfile for the standard library",
long_description=README,
author=__author__,
author_email=__author_email__,
url=__url__,
license=__license__,
requires=[
'python (>=2.6.0)',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment