File: setup.py

package info (click to toggle)
python-evalidate 2.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144 kB
  • sloc: python: 500; makefile: 3
file content (32 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from setuptools import setup
from importlib.machinery import SourceFileLoader
import os


def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()

def get_version(path):
    foo = SourceFileLoader(os.path.basename(path), path).load_module()
    return foo.__version__


setup(name='evalidate',
      version=get_version('evalidate/__init__.py'),
      url='http://github.com/yaroslaff/evalidate',
      author='Yaroslav Polyakov',
      author_email='xenon@sysattack.com',
      license='MIT',
      packages=['evalidate'],
      description='Validation and secure evaluation of untrusted python expressions',
      long_description=read('README.md'),
      long_description_content_type='text/markdown',
      classifiers=[
          "Programming Language :: Python :: 3",
          "License :: OSI Approved :: MIT License",
          "Operating System :: OS Independent",
          'Topic :: Utilities',
          "Topic :: Security",
          "Topic :: Software Development :: Interpreters",
      ],
      zip_safe=False)