File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
- __version__ = '1.0.1'
1
+
2
+ from .version import __version__
2
3
3
4
from .lexer import *
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
from setuptools .command .test import test as TestCommand
3
- import pygments_shader
3
+ from importlib .machinery import SourceFileLoader
4
+ from pathlib import Path
5
+ import os
6
+
7
+ project_root = Path (__file__ ).parent
8
+ pygments_shader_root = project_root / "pygments_shader"
9
+
10
+ version = SourceFileLoader ("pygments_shader.version" , str (pygments_shader_root / "version.py" )).load_module ()
4
11
5
12
setup (
6
13
name = 'pygments-shader' ,
7
- version = pygments_shader .__version__ ,
14
+ version = version .__version__ ,
8
15
description = 'Pygments lexer for Unity shader' ,
9
16
long_description = open ('README.rst' ).read (),
10
17
url = 'https://github.com/midnightSuyama/pygments-shader' ,
You can’t perform that action at this time.
0 commit comments