Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it build on pip 24.x #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pygments_shader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__version__ = '1.0.1'

from .version import __version__

from .lexer import *
1 change: 1 addition & 0 deletions pygments_shader/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0.1'
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import pygments_shader
from importlib.machinery import SourceFileLoader
from pathlib import Path
import os

project_root = Path(__file__).parent
pygments_shader_root = project_root / "pygments_shader"

version = SourceFileLoader("pygments_shader.version", str(pygments_shader_root / "version.py")).load_module()

setup(
name='pygments-shader',
version=pygments_shader.__version__,
version=version.__version__,
description='Pygments lexer for Unity shader',
long_description=open('README.rst').read(),
url='https://github.com/midnightSuyama/pygments-shader',
Expand Down